import { IAction } from './store-types'

export function createAction<T = {}>(type: string, payload: T): IAction<T> {
  return {
    type,
    payload
  }
}
